<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
    String path = request.getContextPath() + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<base href="<%=path%>">
<head>
    <title>Title</title>
    <link rel="stylesheet" type="text/css"
	href="view/bootstrap-3.3.5/css/bootstrap.css" />
<link rel="stylesheet" type="text/css"
	href="view/bootstrapvalidator/css/bootstrapValidator.css" />
<script charset="utf-8" src="view/jquery/jquery-1.10.2.min.js"></script>
<script charset="utf-8" src="view/bootstrap-3.3.5/js/bootstrap.js"></script>
<script charset="utf-8"
	src="view/bootstrapvalidator/js/bootstrapValidator.js"></script>
</head>
<body>
<c:set value="${requestScope.fs}" var="f"></c:set>
<br>
<br>
<br>
<br>
<br>
<div class="container">
    <div class="col-md-8 col-md-offset-2">
        <table class="table table-bordered table-hover">
            <caption>
                消息详情
            </caption>
            <tbody>
            <tr>
            <th>发送人:</th>
                <td colspan="2">${sessionScope.empname}</td>
            </tr>
            <tr>
                <th>接收人:</th>
                <td colspan="2">
                    <c:forEach items="${f.xiaoxijieshou}" var="x">
						${x.employee.empName}
						</c:forEach>
                </td>
            </tr>
            <tr>
                <th>发送时间:</th>
                <td colspan="2">${f.createDate}</td>
            </tr>
            <tr>
                <th>标题:</th>
                <td colspan="2">${f.biaoti}</td>
            </tr>
            <tr>
                <th>内容:</th>
                <td colspan="2">${f.neirong}</td>
            </tr>
            <tr>
                <th>附件:</th>
                <td>${f.files}</td>
                <td >
                    <c:if test="${!empty f.files}">
                        <button type="button"><a href="duanXiaoXi/xiazai?fileName=${f.files}">下载</a></button>
                    </c:if>
                </td>
            </tr>
            <tr>
                <td colspan="3" align="center"><button type="button"><a href="duanXiaoXi/selectDuanXiaoXi">确认</a></button></td>
            </tr>
            </tbody>
        </table>
    </div>
</div>
</body>
</html>
